package com.ruoyi.business.vo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;

import java.util.Date;

@Data
public class WarehouseVo extends BaseEntity {
    /** 入库单号 */
    @Excel(name = "入库单号")
    private String inStoreSn;

    /** 批次号 */
    @Excel(name = "批次号")
    private String batchNumber;

    /** 供应商名称 */
    @Excel(name = "供应商名称")
    private String supplierName;

    /** 货物编码 */
    @Excel(name = "货物编码")
    private String cargoSn;

    /** 货物名称 */
    @Excel(name = "货物名称")
    private String cargoName;

    /** 单位 */
    @Excel(name = "单位")
    private String cargoUnit;

    /** 工厂名称 */
    @Excel(name = "工厂名称")
    private String factoryName;

    /** 仓库名称 */
    @Excel(name = "仓库名称")
    private String storeName;

    /** 库区名称 */
    @Excel(name = "库区名称")
    private String regionName;

    /** 库位编码 */
    @Excel(name = "库位编码")
    private String locationSn;

    /** 托盘编码 */
    @Excel(name = "托盘编码")
    private String traySn;

    /** 入库数量 */
    @Excel(name = "入库数量")
    @JsonProperty(access = JsonProperty.Access.READ_ONLY)
    private Long num;

    /** 货物属性：1良品，2不良品 */
    @Excel(name = "货物属性", readConverterExp="1=良品,2=不良品")
    private Long type;

    /** 供应商编码 */
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private String supplierSn;

    /** 工厂id */
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private Long factoryId;

    /** 仓库id */
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private Long storeId;

    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private String beginTime;

    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private String endTime;

    @JsonIgnore
    private String updateBy;

    @JsonIgnore
    private Date updateTime;

    @JsonIgnore
    private String remark;
}
